﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.Replace
{
    /// <summary>
    /// 维修换新存储信息
    /// </summary>
    public class ReplaceRequest
    {
        /// <summary>
        /// 维修换新ID
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
        /// <summary>
        /// 服务安排 1去现场 2不去现场
        /// </summary>
        public int FixUp { get; set; }
        /// <summary>
        /// 设备集合
        /// </summary>
        public List<ReplaceDevInfo> Devs { get; set; }

        /// <summary>
        /// 当前操作人
        /// </summary>
        public int OperatorID { get; set; }
        /// <summary>
        /// 下一步操作人
        /// </summary>
        public int NextOperatorID { get; set; }
        /// <summary>
        /// 操作步骤
        /// </summary>
        public int Step { get; set; }
        /// <summary>
        /// 提交状态 0保存 1提交 -1结束
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 出现场用户
        /// </summary>
        public string userIDs { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string PlateNumber { get; set; }
        /// <summary>
        /// 出现场时间
        /// </summary>
        public System.DateTime SceneTime { get; set; }
        /// <summary>
        /// 出现场时间上午或下午
        /// </summary>
        public System.DateTime EndTime { get; set; }
    }
    /// <summary>
    /// 维修设备信息
    /// </summary>
    public class ReplaceDevInfo
    {
        /// <summary>
        /// 维修或换新
        /// </summary>
        public int RepairOrChange { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 故障描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 受理人或采购人
        /// </summary>
        public int PRMuserID { get; set; }
        /// <summary>
        /// 受理人或采购人名称
        /// </summary>
        public string PRMuserName { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 设备返回时间
        /// </summary>
        public Nullable<System.DateTime> ReturnTime { get; set; }
    }
}
